From: Florian Müllner Date: Thu, 23 Jun 2011 21:55:49 +0000 (+0200) Subject: utils: Adjust trySpawnCommandLine() to gjs changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8159 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6fc49b79a4e957f2442abcb23fafa33e1af64241;p=gnome-shell.git utils: Adjust trySpawnCommandLine() to gjs changes (out) arrays now no longer return the array length separately, adjust to this change. --- diff --git a/js/misc/util.js b/js/misc/util.js index a876649b8..e63876e99 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -85,10 +85,10 @@ function trySpawn(argv) // Runs @command_line in the background. If launching @command_line // fails, this will throw an error. function trySpawnCommandLine(command_line) { - let success, argc, argv; + let success, argv; try { - [success, argc, argv] = GLib.shell_parse_argv(command_line); + [success, argv] = GLib.shell_parse_argv(command_line); } catch (err) { // Replace "Error invoking GLib.shell_parse_argv: " with // something nicer